package com.ozo.easy.pojo.dto;

import com.ozo.easy.common.model.BaseValidDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Data;

import java.io.Serializable;

/**
 * 部门保存对象
 *
 * @author ozo
 * @version 1.0
 * @date 2025-01-26 16:37:36
 */
@Data
@Schema(description = "部门保存对象")
public class SysDeptSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "主键不能为空", groups = BaseValidDTO.Edit.class)
    @Schema(description = "id")
    private Long id;

    @NotBlank(message = "部门名称不能为空")
    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "上级部门id")
    private Long parentId;

    @NotNull(message = "排序号不能为空")
    @Schema(description = "排序号")
    private Integer orderNum;

    @NotNull(message = "是否启用不能为空")
    @Schema(description = "是否启用")
    private Boolean enableFlag = false;

    @Schema(description = "备注")
    private String remark;

}
